﻿<UserControl x:Class="LiveTiss.Guias.UserControls.GuiaSP_SADTReapresentacaoPrestadorExecutante"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:uc="clr-namespace:LiveTiss.Guias.UserControls"
    xmlns:converter="clr-namespace:LiveTiss.Classes.TypeConverter"
    mc:Ignorable="d" Width="890" x:Name="ucPrestador">
    <UserControl.Resources>
        <converter:EnumConverter x:Key="enumConverter" />
    </UserControl.Resources>
    <StackPanel Width="890">
        <uc:Contratado Value="{Binding Path=Value.Contratado, ElementName=ucPrestador, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
        <uc:ProfissionalExecutante Value="{Binding Path=Value.ProfissionalExecutante, ElementName=ucPrestador, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
        <Grid Width="890" Margin="0,0,6,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.024*"/>
                <ColumnDefinition Width="0.976*"/>
            </Grid.ColumnDefinitions>
            <StackPanel Margin="0" Grid.ColumnSpan="2" Grid.Column="2">
                <TextBlock TextWrapping="Wrap" FontFamily="Segoe UI" FontSize="13.333" Text="Código da Operadora / CPF / CNPJ:"/>
                <ComboBox Width="180" Margin="0,6,0,0" HorizontalAlignment="Left" SelectedValue="Key" DisplayMemberPath="Value"
                            ItemsSource="{Binding Path=Value.profissionalExecutanteCompl.codigoProfissionalCompl.identificacaoProfissionalComplItems, ElementName=ucPrestador, Mode=OneWay}"
                            SelectedIndex="{Binding Path=Value.profissionalExecutanteCompl.codigoProfissionalCompl.ItemElementName, ElementName=ucPrestador, Converter={StaticResource enumConverter}, ConverterParameter='IdentificacaoProfissionalCompl', ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
                <TextBox Margin="0,6,323,0" MaxLength="15" Text="{Binding Path=Value.profissionalExecutanteCompl.codigoProfissionalCompl.ItemValue, ElementName=ucPrestador, ValidatesOnDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}" />
            </StackPanel>
            <TextBlock x:Name="Opcional" TextWrapping="Wrap" Text="*" FontFamily="Segoe UI" FontWeight="Bold" FontSize="21.333" Foreground="#FF307852" Height="16" VerticalAlignment="Top" Margin="0,0,3,0" d:LayoutOverrides="Width"/>
        </Grid>
    </StackPanel>
</UserControl>
